import request from '@/utils/request'
//获取标签信息数据列表
export const getTagListApi = params => {
    return request({
        url: 'admin/subject/tag',
        params
    })
}
//切换显示隐藏
export const changeShowApi = data => {
    return request({
        url: 'admin/subject/tag/' + data.id,
        method: 'put',
        data
    })
}
//新增标签
export const addTagApi = data => {
    return request({
        url: 'admin/subject/tag',
        method: 'post',
        data
    })
}
//删除标签
export const delTagApi = id => {
    return request({
        url: 'admin/subject/tag/' + id,
        method: 'delete',

    })
}
//修改标签
export const editTagApi = data => {
    return request({
        url: 'admin/subject/tag/' + data.id,
        method: 'put',
        data
    })
}
//获取单个标签详情
export const getTagInfoApi = (id) => {
    return request({
        url: 'admin/subject/tag/' + id,
    })
}